money = eval(input("请输入贷款金额："))
year = eval(input('请输入贷款年数：'))

print(format("年利率","<10s")+format("每月月供","<6s")+format("总还款","<10s"))

rate = 0.05
per_rate = 0.00125
while rate <= 0.081:
    month_rate = rate/12
    month_money = (money*month_rate) / ( 1- (1/(1+month_rate)**(year*12)) )
    all_money = month_money*year*12
    
    print(format(str(format(rate * 100, ".3f"))+"%", "<10s") + format( month_money , "<14.2f") + format(
        all_money, "<14.2f"))
    rate += per_rate
